package org.lfh.wintersun.web.secondKill.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lfh.wintersun.common.base.BaseEntity;

import java.io.Serial;
import java.io.Serializable;

/**
 * (SecondKillVoucher) 表实体类
 *
 * @author lfh
 * @since 2025-04-12 23:06:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("second_kill_voucher")
public class SecondKillVoucherEntity extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 商铺id
     */
    private String shopId;
    /**
     * 代金券标题
     */
    private String title;
    /**
     * 副标题
     */
    private String subTitle;
    /**
     * 使用规则
     */
    private String rules;
    /**
     * 支付金额，单位是分。例如200代表2元
     */
    private String payValue;
    /**
     * 抵扣金额，单位是分。例如200代表2元
     */
    private Long actualValue;
    /**
     * 0,普通券；1,秒杀券
     */
    private String type;
    /**
     * 1,上架; 2,下架; 3,过期
     */
    private String status;

    /**
     * 秒杀卷
     */
    @TableField(exist = false)
    private SecondKillVoucherExtEntity secondKillVoucherExtEntity;
}
